package consumer.feign;

import consumer.feign.impl.ProducerServiceImpl;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="spring-cloud-producer" , fallback = ProducerServiceImpl.class)
public interface ProducerService {

    @RequestMapping(value = "/hello")
    public String hello(@RequestParam(value = "name") String name);

}
